//
//  TL1View.m
//  UI豆瓣2015到2016跨年作业
//
//  Created by LHY on 15/12/31.
//  Copyright © 2015年 Lanou 32 李昊宇. All rights reserved.
//

#import "TL1View.h"

@implementation TL1View

- (void)dealloc {

    [_Lable release];
    [_tf release];
    [super dealloc];


}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self createLTview];
    }
    return self;
}

- (void)createLTview {

    self.Lable = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 100, self.frame.size.height)];
    _Lable.font = [UIFont boldSystemFontOfSize:20];
    [self addSubview:_Lable];
    [_Lable release];
    self.tf = [[UITextField alloc] initWithFrame:CGRectMake(100, 0, 200, self.frame.size.height)];
    _tf.borderStyle = UITextBorderStyleRoundedRect;
    _tf.clearsOnBeginEditing = YES;
    [self addSubview:_tf];
    _tf.clearButtonMode = UITextFieldViewModeAlways;
    [_tf release];
}









/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
